<h1>Listing customers</h1>
<p>
<%= link_to 'New Customer', new_customer_path, :class => 'gray-btn'  %>
</p>

<table>
  <tr>
    <th>Company</th>
    <th>Address</th>
    <th>Telephone</th>
    <th>Fax</th>
    <th></th>
    <th></th>
    <th></th>
  </tr>

<% @customers.each do |customer| %>
  <tr>
    <td><%= customer.company %></td>
    <td><%= customer.address %></td>
    <td><%= customer.telephone %></td>
    <td><%= customer.fax %></td>
    <td><%= link_to 'Show', customer %></td>
    <td><%= link_to 'Edit', edit_customer_path(customer) %></td>
    <td><%= link_to 'Destroy', customer, method: :delete, data: { confirm: 'Are you sure?' } %></td>
  </tr>
<% end %>
</table>

<br />
